<?php

require_once "core/application/models/bans/mbans3.php";

class Mbans4 extends Mbans3 {

    private $_query;

    protected function edit_ban($ip, $time_end, $id) {
        /**
         *  изменяем бан
         * @param mixed $ip
         * @param date $time_end
         * @param int $id
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "UPDATE `banned_ip` SET `mask` = '$ip', `time_end` = '$time_end' WHERE `id` = '$id'";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
